﻿using EcoSystem.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;

namespace EcoSystem
{
    /// <summary>
    /// 领域模型对应的DTO
    /// </summary>
    public class SystemMenuDto : ExtensibleFullAuditedEntityDto<Guid>
    {

        /// <summary>
        /// 菜单分组
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// 上级
        /// </summary>
        public Guid ParentId { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        [Required]
        public string PermissionName { get; set; }

        /// <summary>
        /// 菜单类型
        /// </summary>
        public MenuType MenuType { get; set; }

        /// <summary>
        /// 显示名字
        /// </summary>
        [Required]
        public string DisplayName { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 菜单地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public int SortIndex { get; set; }

        /// <summary>
        /// 启用状态
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
    }
}
